<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>智慧健康养老管理系统系统 - 登录</title>
<link href="${pageContext.request.contextPath}/css/bootstrap.min.css"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath}/css/font-awesome.min.css?v=4.4.0"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/animate.min.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/style.min.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/login.min.css"
	rel="stylesheet">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript">
	function loginValidate() {
		var $username = $("#username").val();
		var $password = $("#password").val();
		if ($username == null || $username.trim().length== 0) {
			$("#msg").text("用户名不能为空");
			return false;
		}else if($password == null || $password.trim().length== 0){
			$("#msg").text("密码不能为空");
			return false;
		}
		return true;
	}
</script>

</head>
<body class="signin">
	<div class="signinpanel">
		<div class="row">
			<div class="col-sm-7">
				<div class="signin-info">
					<div class="logopanel m-b">
						<h1>[ 智慧健康养老管理系统系统   ]</h1>
					</div>
					<div class="m-b"></div>
					<h4>
						欢迎使用 <strong>智慧健康养老管理系统系统</strong>
					</h4>
					<ul class="m-b">
						<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 1.</li>
						<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 2.</li>
						<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 3.</li>
						<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 4.</li>
						<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 5.</li>
					</ul>
				    <strong>还没有账号？
					</strong> 
				</div>
			</div>
			<div class="col-sm-5">
				<form method="post"
					action="${pageContext.request.contextPath}/Admin/login"
					onsubmit="return loginValidate();">
				
					<h4 class="no-margins">登录：</h4>
					<p class="m-t-md">智慧健康养老管理系统系统</p>
					<font color="red" id="msg">${login_msg}</font>
					 <input type="hidden" name="path" value="login"></input>
					 <span  style="border-style: none;"><input type="radio" id="type" name="type" value="1" >管理员</span>&nbsp;&nbsp;
					 <span  style="border-style: none;"><input type="radio" id="type" name="type" value="2" >员工</span>&nbsp;&nbsp;
					 <span  style="border-style: none;"><input type="radio" id="type" name="type" value="3" >家属用户</span>&nbsp;&nbsp;
					 <input type="text"
						class="form-control uname" placeholder="用户名" name="username"
						id="username" /> <input type="password"
						class="form-control pword m-b" placeholder="密码" name="password"
						id="password" /> 
						
						<a href="">忘记密码了？</a>
						<a href="${pageContext.request.contextPath}/jsp/Jiashu/add.jsp">家属注册</a>
						<input type="submit"
						value="登录" class="btn btn-success btn-block" />
				</form>
			</div>
		</div>
		<div class="signup-footer">
			<div class="pull-left">&copy; 2021 All Rights Reserved.</div>
		</div>
	</div>
</body>
</html>